package com.example.photoview.util;

import okhttp3.OkHttpClient;
import okhttp3.Request;

/**
 * Created by Administrator on 2018/1/18.
 * OkHttpClient util工具类
 */

public class HttpUtil {
    public static void sendHttpRequest(  String address,okhttp3.Callback callback){
        // 创建OKhttp客户端
        OkHttpClient client = new OkHttpClient();
        Request request = new Request.Builder().url(address).build();
        client.newCall(request).enqueue(callback);
    }
}
